//! Theme.debug.js
//

(function() {

////////////////////////////////////////////////////////////////////////////////
// AllPages

window.AllPages = function AllPages() {
    /// <field name="virtualPage" type="String" static="true">
    /// </field>
    /// <field name="homePage" type="String" static="true">
    /// </field>
    /// <field name="playNexusPage" type="String" static="true">
    /// </field>
    /// <field name="salonsPage" type="String" static="true">
    /// </field>
    /// <field name="gamesPage" type="String" static="true">
    /// </field>
    /// <field name="yesPlayLovePage" type="String" static="true">
    /// </field>
    /// <field name="playmatesPage" type="String" static="true">
    /// </field>
    /// <field name="comePlayPage" type="String" static="true">
    /// </field>
}
AllPages.get_pages = function AllPages$get_pages() {
    /// <value type="Object"></value>
    var pages = AllPages;
    var nPages = {};
    var $dict1 = pages;
    for (var $key2 in $dict1) {
        var p = { key: $key2, value: $dict1[$key2] };
        if (typeof(p.value) === 'string' && p.key.indexOf('Page') >= 0) {
            nPages[p.value] = p.value;
        }
    }
    return nPages;
}
AllPages.page = function AllPages$page(n) {
    /// <param name="n" type="String">
    /// </param>
    /// <returns type="String"></returns>
    return (AllPages)[n.substr(0, 1).toLowerCase() + n.substr(1)];
}


////////////////////////////////////////////////////////////////////////////////
// TopBarTheme

window.TopBarTheme = function TopBarTheme() {
    /// <field name="saved" type="String" static="true">
    /// </field>
    /// <field name="unsaved" type="String" static="true">
    /// </field>
    /// <field name="homeBtnText" type="String" static="true">
    /// </field>
    /// <field name="playNexusBtnText" type="String" static="true">
    /// </field>
    /// <field name="salonsBtnText" type="String" static="true">
    /// </field>
    /// <field name="gamesPageText" type="String" static="true">
    /// </field>
    /// <field name="yesPlayLoveBtnText" type="String" static="true">
    /// </field>
    /// <field name="playmatesBtnText" type="String" static="true">
    /// </field>
    /// <field name="comePlayBtnText" type="String" static="true">
    /// </field>
}


Type.registerNamespace('Theme');

////////////////////////////////////////////////////////////////////////////////
// Theme.Overrides

Theme.Overrides = function Theme_Overrides() {
    /// <field name="_setMe" type="Boolean" static="true">
    /// </field>
}
Theme.Overrides.get__dataDir = function Theme_Overrides$get__dataDir() {
    /// <value type="String"></value>
    return (window.location.href.indexOf('nsb') >= 0) ? 'dataNSB' : 'data';
}
Theme.Overrides.Update = function Theme_Overrides$Update() {
    /// <summary>
    /// Overrides to the default theme.
    /// </summary>
    /// <returns type="Boolean"></returns>
    ThemeBase.dataPath = Theme.Overrides.get__dataDir();
    ThemeBase.defaultPageClass = 'VirtualPage';
    ThemeBase.logoImage = 'images/Common/LOGO1.JPG';
    ThemeBase.siteTitle = "<span style='color: #3289CE'>Play</span> <span style='color: #000'>Nexus</span><span style='font-family:comic sans ms'>&trade;</span>";
    ThemeBase.oldPages = AllPages.get_pages();
    ThemeBase.f2Event = function(e) {
        FunctionKeys.F2(e);
    };
    ThemeBase.defaultPageCss = { background: 'center bottom no-repeat', 'background-image': 'none', 'background-color': '#777', 'min-height': '500px' };
    ThemeBase.bgImgUrl = Uri.versionize('url(' + Uri.join(ThemeBase.dataPath, '/pg/gigs/', ThemeBase.currentPageName, 'background.jpg') + ')');
    return Theme.Overrides._setMe;
}


AllPages.registerClass('AllPages');
TopBarTheme.registerClass('TopBarTheme');
Theme.Overrides.registerClass('Theme.Overrides');
AllPages.virtualPage = 'NexusPages.VirtualPage';
AllPages.homePage = 'NexusPages.HomePage';
AllPages.playNexusPage = 'NexusPages.PlayNexusPage';
AllPages.salonsPage = 'NexusPages.SalonsPage';
AllPages.gamesPage = 'NexusPages.GamesPage';
AllPages.yesPlayLovePage = 'NexusPages.YesPlayLovePage';
AllPages.playmatesPage = 'NexusPages.PlaymatesPage';
AllPages.comePlayPage = 'NexusPages.ComePlayPage';
TopBarTheme.saved = 'saved';
TopBarTheme.unsaved = 'unsaved';
TopBarTheme.homeBtnText = 'Home';
TopBarTheme.playNexusBtnText = 'Play Nexus';
TopBarTheme.salonsBtnText = 'Salons';
TopBarTheme.gamesPageText = 'Games';
TopBarTheme.yesPlayLoveBtnText = 'Yes Play Love &hearts;';
TopBarTheme.playmatesBtnText = 'Playmates';
TopBarTheme.comePlayBtnText = 'Come Play';
Theme.Overrides._setMe = Theme.Overrides.Update();
})();

//! This script was generated using Script# v0.7.4.0
